const redis = require('redis');
// const client = redis.createClient('redis://121.199.25.169',{auth_pass: 'redis123'});
const client = redis.createClient('redis://127.0.0.1');
client.on('error',function (err) {
    console.log("连接失败")
});

client.on('connect',function () {
    console.log("连接成功")
});

module.exports = client;
